s = serial('COM8','BaudRate',115200,'DataBits',8);

try
    fopen(s);
    fprintf(s,'');
    str = fscanf(s);

    data = cell2mat(textscan(str, '%d%d%d','delimiter',';'));
    fclose(s);

       for i =1:1
        data
       end
    
catch ME
    fclose(s);
end



